﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace TelerikStore.MasterPages
{
    public partial class TwoColumn : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                QuickCategoryMenu.LoadContentFile("~/CategoryList.xml");                
                if (Request.QueryString["Category"] != null && QuickCategoryMenu.FindItemByValue(Request.QueryString["Category"])!=null)
                {
                    QuickCategoryMenu.FindItemByValue(Request.QueryString["Category"]).Selected = true;
                }
            }
        }
    }
}